package com.example.demo.service;

import com.example.demo.mapper.entity.*;

import java.util.List;

/**
 * @author Lucy
 * @create 2024-03-14 0:33
 */
public interface AdService {
    List<Ad> getAdList();

    Ad selectAdById(int adId);

    AdSetting selectSetting();

    void insertAdClick(AdClick adClick);

    void insertAdTransaction(AdTransaction transaction);

    void updateAderBalance(Advertiser advertiser, double clickCost);

    Advertiser selectAdvertiserById(int advertiserId);

    List<AdClick> selectAllAdClick();

    Student selectStudentById(int studentId);

    int selectStudentCountByGender(int gender);

    int selectStudentCountByNativePlace(int nativePlace);

    int selectStudentCountByCollege(int collegeId);

    List<AdKey> selectAllAdKey();

    AdKey selectAdKeyById(int adId);

    List<AdStudent> selectAdStudent(int studentId);
}
